<!--JSP初始化设置-->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.infomanage.service.plan.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
    request.setCharacterEncoding("UTF-8");
	String trainId = request.getParameter("trainId");
    if(trainId == null) trainId = "";
    
    EducationtrainPlanItem trainItem = EducationTrainPlanService.loadEducationTrainPlan(request, response, out);
    int persionId = -1;
    int deptId = -1;
    String place = "";
    String way = "";
    int postion = -1;
    String grade = "";
    String beginTime = ""; 
    String endTime = ""; 
    String desc = "";
    String personname = "";
    String deptname = "";
    if(trainItem != null) {
    	EducationtrainPlan train = trainItem.getBean();
		Person person = trainItem.getPerson();
	    persionId = train.getPersonId();
	    deptId = train.getDeptId();
	    personname = person.getName();
	    postion = train.getPosition();
	    place = train.getPlace();
	    way = train.getWay();
	    beginTime = train.getBeginTime();
	    endTime = train.getEndTime();
	    grade = train.getGrade();
	    desc = train.getDescription();
    } 
%>
<html>
<head>
	<title>教育与培训计划</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>教育与培训计划</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							姓名
						</td>
						<td>
							<%=personname %>
						</td>
					</tr>
					<tr>
						<td class="field">
							职务
						</td>
						<td>
							<%=PositionType.valueOf(postion).title() %>
						</td>
					</tr>
					<tr>
						<td  class="field">
							培训地点
						</td>
						<td>
							<%=place %>
						</td>
					</tr>
					<tr>
						<td class="field">
							培训方式
						</td>
						<td>
							<%=way %>
						</td>
					</tr>
					<tr>
						<td class="field">
							开始时间
						</td>
						<td>
							<%=beginTime %>
						</td>
					</tr>
					<tr>
						<td class="field">
							结束时间
						</td>
						<td>
							<%=endTime %>
						</td>
					</tr>
					<tr>
						<td class="field">
							培训成绩
						</td>
						<td>
							<%=grade %>
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							备注
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=desc %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>